package ThreadBasic;

import java.util.concurrent.TimeUnit;

/**
 * @author yyh
 * @create 2020-10-22 8:24
 */
public class Test1 {
    public static void main(String[] args){
        Thread t = new Thread(){
            @Override
            public void run() {
               try{
                   TimeUnit.SECONDS.sleep(3);
                   System.out.println("pong");
               }catch(Exception e){
                   e.printStackTrace();
               }
            }
        };
        t.run();

        System.out.println("ping");
    }
}
